package com.abc.xxx.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
@TableName("t_accessible_dept")
public class AccessibleDept {

    private Integer roleId;
    private Integer deptId;

    @TableField(exist = false)
    private List<Integer> customAccessibleDeptIds = new ArrayList<>();

    public AccessibleDept() {
    }

    public AccessibleDept(Integer roleId, Integer deptId) {
        this.roleId = roleId;
        this.deptId = deptId;
    }
}
